<?php
class PartnerRaiting extends CActiveRecord {

    public $partnerid;
    public $type;
    public $val;
    
    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function tableName() {
        return 'partners_ratings';
    }
    
    public function relations() {
        return array(
            'catRaitings'=>array(self::BELONGS_TO, 'PartnerCatRaiting', 'catRatingId', 'order'=>'catRaitings.catRatingId ASC'),
        );
    }
}
